package io.renren.modules.sell.response;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.renren.modules.sell.entity.OrderDetail;
import io.renren.modules.sell.enums.OrderStatusEnum;
import io.renren.modules.sell.enums.PayStatusEnum;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @ClassName OrderResponse
 * @Author mengjiafeng
 * @Date 2020/4/6 13:16
 **/
@Data
public class OrderResponse {
    @TableId
    private String orderId;
    private String buyerName;
    private String buyerPhone;
    private String buyerAddress;
    private Long userId;
    //买家微信OpenId
    private String buyerOpenId;
    //订单总金额
    private BigDecimal orderAmount;
    //订单状态，默认为0新订单
    private Integer orderStatus= OrderStatusEnum.NEW.getCode();
    //支付状态
    private Integer payStatus= PayStatusEnum.WAIT.getCode();
    private Date createTime;
    @TableField(update = "now()")
    private Date updateTime;
    private List<OrderDetail> orderDetailList;
}
